/**
 * Project: topdt-jbpm
 * Copyright 2013  Top Digital Technology  Co. Ltd.
 * All right reserved.
 */
package com.topdt.jbpm;

/**
 * 建立日期 : 2013-6-3 下午6:03:21<br>
 * 作者 : balance<br>
 * 模块 : <br>
 * 描述 : <br>
 * 修改历史: 序号 日期 修改人 修改原因 <br>
 * 1 <br>
 * 2 <br>
 */
public class Constants {

	public static final String CONTEXT_HTTPSESSION = "context_http_session";

	public static final String CONTEXT_HTTPREQ = "context_http_request";

	public static final String CONTEXT_TENANT_ID = "context_tenant_id";

	public static final String CONTENT_TYPE_JSON = "application/json;charset=utf-8";
	public static final String CONTENT_TYPE_HTML = "text/html;charset=utf-8";
	public static final String CONTENT_TYPE_XML = "text/xml;charset=utf-8";
	public static final String CONTENT_TYPE_JAVASCRIPT = "text/javascript;charset=utf-8";// "application/javascript"
	public static final String CONTENT_TYPE_TEXT = "text/plain;charset=utf-8";
	
	/**
	 * 人员树显示层级
	 */
	public static final String PER_TREE_LEVEL_NORMAL = "normal";//正常显示
	public static final String PER_TREE_LEVEL_TWOLEVEL = "twoLevel";//最多显示两级，多级数据也放到第二级
	
	public static final String APPID_KEY = "appId";

	public static final String USER_KEY = "user";
	
	public static final String WORKSTATE_START ="start";
	
	public static final String WORKID_KEY = "workId";
	
	public static final String SESSIONID_KEY ="sesssionId";
	
	public static final String IS_SEND ="1"; //20141210 BY LCX 设定wf_todo的is_send的字段当状态为已发送短信时，更新为1
	
	//业务key，建立业务和流程的关系（流程启动之前的数据和流程数据）
	public static final String BUSINESS_KEY = "businesskey";
	
	/**
	 * 日志记录 模块名称
	 */
	public static final String APPTYPE_MODULE ="appType";//应用分类
	public static final String APP_MODULE ="application";//应用定制 
	public static final String FLOW_MODULE ="flow";//流程
	public static final String WORKFLOW_MODULE ="workflow"; //流转
	public static final String DOCUMENT_MODULE ="document"; //公文
	public static final String LEAVE_MODULE ="leave"; //请假
	public static final String REIMBRUSEMENT_MODULE ="reimbursement"; //报销
	public static final String LEVECTION_MODULE ="evection"; //出差
	public static final String CONSUMING_MODULE ="consuming"; //物品领用
	public static final String EXPAND_MODULE ="expand"; //扩展应用
	
	
	/**
	 * 日志记录 动作名称
	 */
	public static final String ADD = "add";
	public static final String UPDATE = "update";
	public static final String DELETE = "delete";
	public static final String SEARCH = "search";
	public static final String COPY = "copy";
	
	public static final String WORKDESC="起草人:%s,标题：%s   工作已结束";
	public static final String WORKDESC_ADD="起草人:%s,标题：%s ";
	
	public static final String SEARCH_DESC="查询:%s列表";
	public static final String APPTYPE_DESC="%s应用分类，应用分类名称为:%s";
	public static final String APP_DESC="%s应用，应用名称为:%s";
	public static final String APP_FIELD_DESC="%s应用，%s字段，字段名称为:%s";
	public static final String APP_TEMP_DESC="%s应用，生成模板";
	public static final String APP_FIELDRIGHT_DESC="%s应用，修改字段读写权限";
	public static final String APP_HANDLERIGHT_DESC="%s应用，修改操作权限";
	public static final String FLOW_DESC="%s流程，流程名称为：%s，版本号为:%s";
	
	public static final String LOGINFO_KEY="loginfo";
}
